﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<%@ Import Namespace="WebHoiChoMuaBan.Models" %>
<%@ Import Namespace="WebHoiChoMuaBan.Controllers.Helpers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    CreateCustomer
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Tạo mới thông tin khách hàng</h2>
    <form action="<%= Url.Action("SaveCustomer","Customer") %>" method="post" enctype="multipart/form-data">
    <table>
        <tr>
            <td>
                Tên công ty
                <%=Html.TextBox("txtCusID", (ViewData["CusID"] == null ? "" : ViewData["CusID"].ToString()), new { @class = "text hidden" })%>
            </td>
            <td>
                <%=Html.TextBox("txtCusName", (ViewData["CusName"] == null ? "" : ViewData["CusName"].ToString()), new { @class = "text text-box" })%>
            </td>
        </tr>
        <tr>
            <td>
                Địa chỉ
            </td>
            <td>
                <%=Html.TextBox("txtCusAdd", (ViewData["CusAdd"] == null ? "" : ViewData["CusAdd"].ToString()), new { @class = "text" })%>
            </td>
        </tr>
        <tr>
            <td>
                Điên thoại
            </td>
            <td>
                <%=Html.TextBox("txtCusPhone", (ViewData["CusPhone"] == null ? "" : ViewData["CusPhone"].ToString()), new { @class = "text" })%>
            </td>
        </tr>
        <tr>
            <td>
                Di động
            </td>
            <td>
                <%=Html.TextBox("txtCusCellPhone", (ViewData["CusCellPhone"] == null ? "" : ViewData["CusCellPhone"].ToString()), new { @class = "text" })%>
            </td>
        </tr>
        <tr>
            <td>
                Fax
            </td>
            <td>
                <%=Html.TextBox("txtCusFax", (ViewData["CusFax"] == null ? "" : ViewData["CusFax"].ToString()), new { @class = "text" })%>
            </td>
        </tr>
        <tr>
            <td>
                Email
            </td>
            <td>
                <%=Html.TextBox("txtCusEmail", (ViewData["CusEmail"] == null ? "" : ViewData["CusEmail"].ToString()), new { @class = "text" })%>
            </td>
        </tr>
        <tr>
            <td>
                Logo
            </td>
            <td>
                <%--<%=Html.TextBox("txtCusLogoPic", (ViewData["CusLogoPic"] == null ? "" : ViewData["CusLogoPic"].ToString()), new { @class = "text" })%>--%>
                <%Response.Write(string.Format("<img src='../../Content/Images/Upload/Customer/{0}' id='txtCusLogoPic' name='txtCusLogoPic' />", (ViewData["CusLogoPic"] == null ? "" : ViewData["CusLogoPic"].ToString()))); %>
            </td>
        </tr>
        <tr id="ex-file1">
            <td align="right" valign="middle" class="private_font_bold">
                Hình mình họa
            </td>
            <td>
                <input type="file" name="ex-file1" />
            </td>
        </tr>
        <tr>
            <td>
                Mật khẩu
            </td>
            <td>
                <%=Html.Password("txtCusPassword", (ViewData["CusPassword"] == null ? "" : ViewData["CusPassword"].ToString()), new { @class = "text" })%>
            </td>
        </tr>
        <tr>
            <td>
                Giới thiệu
            </td>
            <td>
                <%=Html.TextArea("txtCusIntro", (ViewData["CusIntro"] == null ? "" : ViewData["CusIntro"].ToString()), new { @class = "text-area text" })%>
            </td>
        </tr>
    </table>
    <input type="submit" value="Save" class="hoicho_bt_submit_reg" style="width: 60px" />
    </form>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeadHolder" runat="server">
</asp:Content>
